package com.wkbb.common.enums;

/**
 * @author luowenyan
 * 应用模块 1：宝宝成长点滴 2：宝宝纪念日 3：班级圈 4：校园
 */
public enum VisibleScopeEnum {

    /**
     * 私密
     */
    OWN("own","私密"),
    /**
     * 亲友可见
     */
    FRIENDS("friends","亲友可见");

    private VisibleScopeEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private String value;

    private String desc;

    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(String value) {
        for (VisibleScopeEnum visibleScope : VisibleScopeEnum.values()) {
            if (visibleScope.getValue().equals(value)) {
                return visibleScope.getDesc();
            }
        }
        return null;
    }
}
